/*
 * @Author: wz
 * @Date: 2020-11-26 13:56:17
 * @LastEditors: wz
 * @LastEditTime: 2021-01-29 14:23:09
 * @Description: 接口环境变量
 */
console.log('当前环境', process.env.NODE_ENV)
const env = process.env.NODE_ENV
let baseURL = '',
    mockURL = '',
    clientId = ''
if (location.origin.includes('//fabric-erp-dev.szzhijing.com') || env === 'development') {
    baseURL = 'https://dev-a.szzhijing.com'
    clientId = '26EED873DC8148A1A8D76FCF50E2131D'
    mockURL = location.origin
}

if (location.origin.includes('//fabric-erp-qa.szzhijing.com')) {
    mockURL = baseURL = 'https://qa-a.szzhijing.com'
    clientId = 'D4EF003FC02D4E189CB38F2E21758F6B'
}
if (location.origin.includes('//fabric-erp.szzhijing.com')) {
    mockURL = baseURL = 'https://a.szzhijing.com'
    clientId = 'C4B49657A85D484E86F0C83C8079B02B'
}

export { baseURL, clientId, mockURL }
